#include <QApplication>
#include <stdio.h>
#include <vector>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

#include "qrReader.h"

using namespace cv;
using namespace std;

int main(int argc, char **argv)
{
    qrReader qr = qrReader();

    Mat image,imgBW;
    //image = imread("C://Users//LUCAS//Desktop//Trabalho de PICG//img.jpg");
    image = imread("/home/dellano/qtWorkplace/piqrcode/imagens/img_vs06.png");
    cvtColor(image, imgBW, CV_BGR2GRAY);
    threshold(imgBW, imgBW, 128, 255, THRESH_BINARY);
    qr.readQrCode(imgBW);

    waitKey(0);

    return 0;
}
